package org.jeecg.modules.bobo.common.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.bobo.common.entity.LbUserAgreement;
import org.jeecg.modules.bobo.common.mapper.LbUserAgreementMapper;
import org.jeecg.modules.bobo.common.service.ILbUserAgreementService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 用户协议
 * @Author: jeecg-boot
 * @Date:   2020-11-23
 * @Version: V1.0
 */
@Service
public class LbUserAgreementServiceImpl extends ServiceImpl<LbUserAgreementMapper, LbUserAgreement> implements ILbUserAgreementService {

    @Override
    public LbUserAgreement getByCode(String code) {
        return getOne(new QueryWrapper<LbUserAgreement>().lambda().eq(LbUserAgreement::getCode,code));
    }
}
